<template>
  <div class="header">
    <mt-header :title="title" :fixed="true">
  <div @click="last" slot="left" v-if="title=='完成'?false:true">
    <mt-button icon="back">返回</mt-button>
    <!-- <mt-button @click="handleClose">关闭</mt-button> -->
  </div>
  <!-- <mt-button icon="more" slot="right"></mt-button> -->
</mt-header>
  </div>
</template>

<script>
import { mapState } from 'vuex';
import router from '../../router'
export default {
  name: 'Header',
  data(){ 
    return{
      isShow:false,
      //mytitle:'',
      
    }
  },
  computed:{
    ...mapState(['title'])
  },
  methods:{
    last(){
      router.go(-1)
    }
  }
}
</script>
<style lang="scss" scoped>
.mint-header{
  z-index: 999;
}
</style>
